package com.mspbots.common.client;

import org.springframework.cloud.client.loadbalancer.reactive.ReactorLoadBalancerExchangeFilterFunction;
import org.springframework.stereotype.Service;
import org.springframework.web.reactive.function.client.WebClient;

/**
 * com.mspbots.api.client.WiseClient
 *
 * @author sean.wang
 * @date Created by 2020/02/27
 */
@Service
public class ReportsClient extends AbstractClient {

    protected ReportsClient(WebClient.Builder builder,
                            ReactorLoadBalancerExchangeFilterFunction lbFunction) {
        super(builder.baseUrl("http://mspbots-reports")
                .filter(lbFunction)
                .build());
    }


}
